colorCompat

The color that the compat mechanism uses to tint the shadow. The default value is black (#FF000000), which disables the tint. If any other color is set, the compat mechanism takes over, and the ambientColor and spotColor values are ignored.

Color compat requires that the drawable instance be created with an owner View that's attached to the onscreen hierarchy. If the View is not attached, there is no guaranteed behavior. If the @RequiresApi(29) constructor is used, attempting to set color compat will throw an IllegalStateException.

Color compat shadows are always clipped to the drawable's bounds. Also, due to a bug in the underlying system graphics, all clipped shadows are also clipped to the bounds on API level 24.